<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<%@ include file="/WEB-INF/pages/common/inc.jsp"%>
<script src="${ctxStatic}/js/jquery.min.js?v=2.1.4"></script>
<script src="${ctxStatic}/js/plugins/layer/layer.min.js"></script>
<script src="${ctxStatic}/js/plugins/jqgrid/i18n/grid.locale-cnffe4.js?0820"></script>
<script src="${ctxStatic}/js/plugins/jqgrid/jquery.jqGrid.minffe4.js?0820"></script>
</head>
<body>
		<input type="hidden" name="comment.id" id="comment_id" value="${comment.id}">
		<label class="col-sm-3 control-label">内容：</label>
		<textarea name="comment.content" rows="5" cols="40" id="content_id">${comment.content }</textarea>
		<div align="center">
		<button type="submit" class="btn btn-primary" onclick="commit()">修改</button>
		</div>
		<script type="text/javascript">
			function commit(){
				var content = $("#content_id").val();
				if(content == ""){
					alert("不能为空");
					return false;
				} else {
					$.get(
						"${ctx}/admin/goods/editComment",
						{"id":${comment.id},"content":content},
						function(){
							var index = parent.layer.getFrameIndex(window.name);
							parent.layer.close(index);
						}
					);
				}
			}
		</script>
</body>
</html>